package com.sghd.football.module.game.facade.model;

import com.sghd.football.module.game.service.model.Result;
import com.sghd.football.utils.json.Json;

/**
 * \* Created with 王创辉.
 * \* Date: 2018/5/28
 * \* Time: 17:48
 * \* @desc: 游戏结果Vo
 */
@Json
public class GameResult {

    /** 剩余免费次数*/
    private int nexFreeFlag;
    /** 奖励等级，客户端特效表现*/
    private int awardType;
    /** 游戏结果 */
    private Result result;
    /** 当前金币*/
    private long curMoney;
    /** 免费游戏获得的金币*/
    private long freeMoney;

    public static GameResult valueOf(int nexFreeFlag, int awardType, Result result, long curMoney, int freeMoney){
        GameResult gameResult = new GameResult();
        gameResult.nexFreeFlag = nexFreeFlag;
        gameResult.awardType = awardType;
        gameResult.result = result;
        gameResult.curMoney = curMoney;
        gameResult.freeMoney = freeMoney;
        return gameResult;
    }

    public int getNexFreeFlag() {
        return nexFreeFlag;
    }

    public void setNexFreeFlag(int nexFreeFlag) {
        this.nexFreeFlag = nexFreeFlag;
    }

    public int getAwardType() {
        return awardType;
    }

    public void setAwardType(int awardType) {
        this.awardType = awardType;
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    public long getCurMoney() {
        return curMoney;
    }

    public void setCurMoney(long curMoney) {
        this.curMoney = curMoney;
    }

    public long getFreeMoney() {
        return freeMoney;
    }

    public void setFreeMoney(long freeMoney) {
        this.freeMoney = freeMoney;
    }
}
